﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Admin_Auths.ascx.cs" Inherits="Hisun.UserControl.Admin_Auths" %>
<asp:ListView ID="ListView1" runat="server" DataKeyNames="权限ID" 
    DataSourceID="LinqDataSource1">
    <ItemTemplate>
        <tr style="">
            <td>
                <asp:Label ID="权限IDLabel" runat="server" Text='<%# Eval("权限ID") %>' />
            </td>
            <td>
                <asp:Label ID="权限名称Label" runat="server" Text='<%# Eval("权限名称") %>' />
            </td>
        </tr>
    </ItemTemplate>
    <AlternatingItemTemplate>
        <tr style="">
            <td>
                <asp:Label ID="权限IDLabel" runat="server" Text='<%# Eval("权限ID") %>' />
            </td>
            <td>
                <asp:Label ID="权限名称Label" runat="server" Text='<%# Eval("权限名称") %>' />
            </td>
        </tr>
    </AlternatingItemTemplate>
    <EmptyDataTemplate>
        <table runat="server" style="">
            <tr>
                <td>
                    未返回数据。</td>
            </tr>
        </table>
    </EmptyDataTemplate>
    <InsertItemTemplate>
        <tr style="">
            <td>
                <asp:Button ID="InsertButton" runat="server" CommandName="Insert" 
                    Text="插入" />
                <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                    Text="清除" />
            </td>
            <td>
                &nbsp;</td>
            <td>
                <asp:TextBox ID="权限名称TextBox" runat="server" Text='<%# Bind("权限名称") %>' />
            </td>
        </tr>
    </InsertItemTemplate>
    <LayoutTemplate>
        <table runat="server">
            <tr runat="server">
                <td runat="server">
                    <table ID="itemPlaceholderContainer" runat="server" border="0" style="">
                        <tr runat="server" style="">
                            <th runat="server">
                                权限ID</th>
                            <th runat="server">
                                权限名称</th>
                        </tr>
                        <tr ID="itemPlaceholder" runat="server">
                        </tr>
                    </table>
                </td>
            </tr>
            <tr runat="server">
                <td runat="server" style="">
                </td>
            </tr>
        </table>
    </LayoutTemplate>
    <EditItemTemplate>
        <tr style="">
            <td>
                <asp:Button ID="UpdateButton" runat="server" CommandName="Update" 
                    Text="更新" />
                <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                    Text="取消" />
            </td>
            <td>
                <asp:Label ID="权限IDLabel1" runat="server" Text='<%# Eval("权限ID") %>' />
            </td>
            <td>
                <asp:TextBox ID="权限名称TextBox" runat="server" Text='<%# Bind("权限名称") %>' />
            </td>
        </tr>
    </EditItemTemplate>
    <SelectedItemTemplate>
        <tr style="">
            <td>
                <asp:Label ID="权限IDLabel" runat="server" Text='<%# Eval("权限ID") %>' />
            </td>
            <td>
                <asp:Label ID="权限名称Label" runat="server" Text='<%# Eval("权限名称") %>' />
            </td>
        </tr>
    </SelectedItemTemplate>
</asp:ListView>
<asp:LinqDataSource ID="LinqDataSource1" runat="server" 
    ContextTypeName="Hisun.Models.HisunDBDataContext" EnableDelete="True" 
    EnableInsert="True" EnableUpdate="True" OrderBy="权限ID desc" 
    TableName="TABC_JS_Auths">
</asp:LinqDataSource>

